//
//  YJBDealRecodeSectionHeaderView.m
//  WuLiuTong2
//
//  Created by 腾云小白龍 on 16/5/26.
//  Copyright © 2016年 李昭宏. All rights reserved.
//

#import "YJBDealRecodeSectionHeaderView.h"

@implementation YJBDealRecodeSectionHeaderView

-(instancetype)init{
    self = [super init];
    if (self) {
        [self initView];
    }
    return self;
}


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}


-(void)initView{
    UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, SCREEN_WIDTH - 20, 34)];
    label.textColor = [UIColor grayColor];
    label.font = [UIFont systemFontOfSize:14];
    label.text = @"实时交易情况";
    [self addSubview:label];
    
    UIView * stateView = [[UIView alloc] initWithFrame:CGRectMake(0, 34, SCREEN_WIDTH, 40)];
    stateView.backgroundColor = [UIColor whiteColor];
    [self addSubview:stateView];
    
    UILabel * timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 2 * SCREEN_WIDTH / 9, 40)];
    timeLabel.textAlignment = NSTextAlignmentCenter;
    timeLabel.font = [UIFont systemFontOfSize:14];
    timeLabel.textColor = [UIColor grayColor];
    timeLabel.text = @"时间";
    [stateView addSubview:timeLabel];
    
    UILabel * priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(timeLabel.frame), 0, 2 * SCREEN_WIDTH / 9, 40)];
    priceLabel.textAlignment = NSTextAlignmentCenter;
    priceLabel.font = [UIFont systemFontOfSize:14];
    priceLabel.textColor = [UIColor grayColor];
    priceLabel.text = @"价格";
    [stateView addSubview:priceLabel];
    
    UILabel * nowHandLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(priceLabel.frame), 0, SCREEN_WIDTH / 6, 40)];
    nowHandLabel.textAlignment = NSTextAlignmentCenter;
    nowHandLabel.font = [UIFont systemFontOfSize:14];
    nowHandLabel.textColor = [UIColor grayColor];
    nowHandLabel.text = @"现手";
    [stateView addSubview:nowHandLabel];
    
    UILabel * changeLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(nowHandLabel.frame), 0, SCREEN_WIDTH / 6, 40)];
    changeLabel.textAlignment = NSTextAlignmentCenter;
    changeLabel.font = [UIFont systemFontOfSize:14];
    changeLabel.textColor = [UIColor grayColor];
    changeLabel.text = @"仓差";
    [stateView addSubview:changeLabel];
    
    UILabel * stateLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(changeLabel.frame), 0, 2 * SCREEN_WIDTH / 9, 40)];
    stateLabel.textAlignment = NSTextAlignmentCenter;
    stateLabel.font = [UIFont systemFontOfSize:14];
    stateLabel.textColor = [UIColor grayColor];
    stateLabel.text = @"性质";
    [stateView addSubview:stateLabel];

}

@end
